/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.server.api.model;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2021-09-07
 * @version 1.0
 * @since 1.0
 */
public class MfAppCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static MfAppCriteria create() {
		return new MfAppCriteria();
	}
	
	public static MfAppCriteria create(Column column) {
		MfAppCriteria that = new MfAppCriteria();
		that.add(column);
        return that;
    }

    public static MfAppCriteria create(String name, Object value) {
        return (MfAppCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("mf_app", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public MfAppCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public MfAppCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public MfAppCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public MfAppCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public MfAppCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MfAppCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public MfAppCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MfAppCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public MfAppCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public MfAppCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public MfAppCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public MfAppCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public MfAppCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public MfAppCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public MfAppCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public MfAppCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public MfAppCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public MfAppCriteria andIdEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andIdNotEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andIdGreaterThan(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andIdLessThan(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Integer", "Float");
    	  return this;
      }

      public MfAppCriteria andIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Integer", "Float");
          return this;
      }
        
      public MfAppCriteria andIdIn(List<java.lang.Integer> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andIdNotIn(List<java.lang.Integer> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Integer", "Float");
          return this;
      }
	public MfAppCriteria andAppNameIsNull() {
		isnull("app_name");
		return this;
	}
	
	public MfAppCriteria andAppNameIsNotNull() {
		notNull("app_name");
		return this;
	}
	
	public MfAppCriteria andAppNameIsEmpty() {
		empty("app_name");
		return this;
	}

	public MfAppCriteria andAppNameIsNotEmpty() {
		notEmpty("app_name");
		return this;
	}
        public MfAppCriteria andAppNameLike(java.lang.String value) {
    	   addCriterion("app_name", value, ConditionMode.FUZZY, "appName", "java.lang.String", "Float");
    	   return this;
      }

      public MfAppCriteria andAppNameNotLike(java.lang.String value) {
          addCriterion("app_name", value, ConditionMode.NOT_FUZZY, "appName", "java.lang.String", "Float");
          return this;
      }
      public MfAppCriteria andAppNameEqualTo(java.lang.String value) {
          addCriterion("app_name", value, ConditionMode.EQUAL, "appName", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppNameNotEqualTo(java.lang.String value) {
          addCriterion("app_name", value, ConditionMode.NOT_EQUAL, "appName", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppNameGreaterThan(java.lang.String value) {
          addCriterion("app_name", value, ConditionMode.GREATER_THEN, "appName", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("app_name", value, ConditionMode.GREATER_EQUAL, "appName", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppNameLessThan(java.lang.String value) {
          addCriterion("app_name", value, ConditionMode.LESS_THEN, "appName", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("app_name", value, ConditionMode.LESS_EQUAL, "appName", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("app_name", value1, value2, ConditionMode.BETWEEN, "appName", "java.lang.String", "String");
    	  return this;
      }

      public MfAppCriteria andAppNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("app_name", value1, value2, ConditionMode.NOT_BETWEEN, "appName", "java.lang.String", "String");
          return this;
      }
        
      public MfAppCriteria andAppNameIn(List<java.lang.String> values) {
          addCriterion("app_name", values, ConditionMode.IN, "appName", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppNameNotIn(List<java.lang.String> values) {
          addCriterion("app_name", values, ConditionMode.NOT_IN, "appName", "java.lang.String", "String");
          return this;
      }
	public MfAppCriteria andAppIdIsNull() {
		isnull("app_id");
		return this;
	}
	
	public MfAppCriteria andAppIdIsNotNull() {
		notNull("app_id");
		return this;
	}
	
	public MfAppCriteria andAppIdIsEmpty() {
		empty("app_id");
		return this;
	}

	public MfAppCriteria andAppIdIsNotEmpty() {
		notEmpty("app_id");
		return this;
	}
        public MfAppCriteria andAppIdLike(java.lang.String value) {
    	   addCriterion("app_id", value, ConditionMode.FUZZY, "appId", "java.lang.String", "String");
    	   return this;
      }

      public MfAppCriteria andAppIdNotLike(java.lang.String value) {
          addCriterion("app_id", value, ConditionMode.NOT_FUZZY, "appId", "java.lang.String", "String");
          return this;
      }
      public MfAppCriteria andAppIdEqualTo(java.lang.String value) {
          addCriterion("app_id", value, ConditionMode.EQUAL, "appId", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppIdNotEqualTo(java.lang.String value) {
          addCriterion("app_id", value, ConditionMode.NOT_EQUAL, "appId", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppIdGreaterThan(java.lang.String value) {
          addCriterion("app_id", value, ConditionMode.GREATER_THEN, "appId", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppIdGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("app_id", value, ConditionMode.GREATER_EQUAL, "appId", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppIdLessThan(java.lang.String value) {
          addCriterion("app_id", value, ConditionMode.LESS_THEN, "appId", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppIdLessThanOrEqualTo(java.lang.String value) {
          addCriterion("app_id", value, ConditionMode.LESS_EQUAL, "appId", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppIdBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("app_id", value1, value2, ConditionMode.BETWEEN, "appId", "java.lang.String", "String");
    	  return this;
      }

      public MfAppCriteria andAppIdNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("app_id", value1, value2, ConditionMode.NOT_BETWEEN, "appId", "java.lang.String", "String");
          return this;
      }
        
      public MfAppCriteria andAppIdIn(List<java.lang.String> values) {
          addCriterion("app_id", values, ConditionMode.IN, "appId", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppIdNotIn(List<java.lang.String> values) {
          addCriterion("app_id", values, ConditionMode.NOT_IN, "appId", "java.lang.String", "String");
          return this;
      }
	public MfAppCriteria andAppSecretIsNull() {
		isnull("app_secret");
		return this;
	}
	
	public MfAppCriteria andAppSecretIsNotNull() {
		notNull("app_secret");
		return this;
	}
	
	public MfAppCriteria andAppSecretIsEmpty() {
		empty("app_secret");
		return this;
	}

	public MfAppCriteria andAppSecretIsNotEmpty() {
		notEmpty("app_secret");
		return this;
	}
        public MfAppCriteria andAppSecretLike(java.lang.String value) {
    	   addCriterion("app_secret", value, ConditionMode.FUZZY, "appSecret", "java.lang.String", "String");
    	   return this;
      }

      public MfAppCriteria andAppSecretNotLike(java.lang.String value) {
          addCriterion("app_secret", value, ConditionMode.NOT_FUZZY, "appSecret", "java.lang.String", "String");
          return this;
      }
      public MfAppCriteria andAppSecretEqualTo(java.lang.String value) {
          addCriterion("app_secret", value, ConditionMode.EQUAL, "appSecret", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppSecretNotEqualTo(java.lang.String value) {
          addCriterion("app_secret", value, ConditionMode.NOT_EQUAL, "appSecret", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppSecretGreaterThan(java.lang.String value) {
          addCriterion("app_secret", value, ConditionMode.GREATER_THEN, "appSecret", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppSecretGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("app_secret", value, ConditionMode.GREATER_EQUAL, "appSecret", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppSecretLessThan(java.lang.String value) {
          addCriterion("app_secret", value, ConditionMode.LESS_THEN, "appSecret", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppSecretLessThanOrEqualTo(java.lang.String value) {
          addCriterion("app_secret", value, ConditionMode.LESS_EQUAL, "appSecret", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppSecretBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("app_secret", value1, value2, ConditionMode.BETWEEN, "appSecret", "java.lang.String", "String");
    	  return this;
      }

      public MfAppCriteria andAppSecretNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("app_secret", value1, value2, ConditionMode.NOT_BETWEEN, "appSecret", "java.lang.String", "String");
          return this;
      }
        
      public MfAppCriteria andAppSecretIn(List<java.lang.String> values) {
          addCriterion("app_secret", values, ConditionMode.IN, "appSecret", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAppSecretNotIn(List<java.lang.String> values) {
          addCriterion("app_secret", values, ConditionMode.NOT_IN, "appSecret", "java.lang.String", "String");
          return this;
      }
	public MfAppCriteria andAccessTokenIsNull() {
		isnull("access_token");
		return this;
	}
	
	public MfAppCriteria andAccessTokenIsNotNull() {
		notNull("access_token");
		return this;
	}
	
	public MfAppCriteria andAccessTokenIsEmpty() {
		empty("access_token");
		return this;
	}

	public MfAppCriteria andAccessTokenIsNotEmpty() {
		notEmpty("access_token");
		return this;
	}
        public MfAppCriteria andAccessTokenLike(java.lang.String value) {
    	   addCriterion("access_token", value, ConditionMode.FUZZY, "accessToken", "java.lang.String", "String");
    	   return this;
      }

      public MfAppCriteria andAccessTokenNotLike(java.lang.String value) {
          addCriterion("access_token", value, ConditionMode.NOT_FUZZY, "accessToken", "java.lang.String", "String");
          return this;
      }
      public MfAppCriteria andAccessTokenEqualTo(java.lang.String value) {
          addCriterion("access_token", value, ConditionMode.EQUAL, "accessToken", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAccessTokenNotEqualTo(java.lang.String value) {
          addCriterion("access_token", value, ConditionMode.NOT_EQUAL, "accessToken", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAccessTokenGreaterThan(java.lang.String value) {
          addCriterion("access_token", value, ConditionMode.GREATER_THEN, "accessToken", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAccessTokenGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("access_token", value, ConditionMode.GREATER_EQUAL, "accessToken", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAccessTokenLessThan(java.lang.String value) {
          addCriterion("access_token", value, ConditionMode.LESS_THEN, "accessToken", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAccessTokenLessThanOrEqualTo(java.lang.String value) {
          addCriterion("access_token", value, ConditionMode.LESS_EQUAL, "accessToken", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAccessTokenBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("access_token", value1, value2, ConditionMode.BETWEEN, "accessToken", "java.lang.String", "String");
    	  return this;
      }

      public MfAppCriteria andAccessTokenNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("access_token", value1, value2, ConditionMode.NOT_BETWEEN, "accessToken", "java.lang.String", "String");
          return this;
      }
        
      public MfAppCriteria andAccessTokenIn(List<java.lang.String> values) {
          addCriterion("access_token", values, ConditionMode.IN, "accessToken", "java.lang.String", "String");
          return this;
      }

      public MfAppCriteria andAccessTokenNotIn(List<java.lang.String> values) {
          addCriterion("access_token", values, ConditionMode.NOT_IN, "accessToken", "java.lang.String", "String");
          return this;
      }
	public MfAppCriteria andStatusIsNull() {
		isnull("status");
		return this;
	}
	
	public MfAppCriteria andStatusIsNotNull() {
		notNull("status");
		return this;
	}
	
	public MfAppCriteria andStatusIsEmpty() {
		empty("status");
		return this;
	}

	public MfAppCriteria andStatusIsNotEmpty() {
		notEmpty("status");
		return this;
	}
       public MfAppCriteria andStatusEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andStatusNotEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.NOT_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andStatusGreaterThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andStatusGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andStatusLessThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andStatusLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andStatusBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("status", value1, value2, ConditionMode.BETWEEN, "status", "java.lang.Integer", "Float");
    	  return this;
      }

      public MfAppCriteria andStatusNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("status", value1, value2, ConditionMode.NOT_BETWEEN, "status", "java.lang.Integer", "Float");
          return this;
      }
        
      public MfAppCriteria andStatusIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.IN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public MfAppCriteria andStatusNotIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.NOT_IN, "status", "java.lang.Integer", "Float");
          return this;
      }
}